#ifndef BOOKINFORMATION_H
#define BOOKINFORMATION_H

#include <QWidget>
#include "QMap"
#include "book.h"
#include "QVector"
#include"filewriteandread.h"
#include "book_add_dialog.h"
#include "book_mod_dialog.h"
#define BOOK_SIZE 8
namespace Ui {
class bookInformation;
}

class bookInformation : public QWidget
{
    Q_OBJECT

public:
    explicit bookInformation(QWidget *parent = nullptr);
    ~bookInformation();
    void printfTable();
    QMap<QString, Book> book;
    void closeEvent(QCloseEvent *event);
signals:
    void is_close();
private slots:
    void on_pushButton_add_clicked();

    void on_pushButton_mod_clicked();

    void on_pushButton_delet_clicked();

    void on_pushButton_save_clicked();

    void on_pushButton_close_clicked();

private:
    Ui::bookInformation *ui;
    book_add_Dialog* add_dialog;
    book_mod_Dialog* mod_dialog;
};

#endif // BOOKINFORMATION_H
